package com.cyz.service;


import java.math.BigDecimal;

import com.h5.Ret;
import com.vsd.domain.UserCoupon;
import com.zy.order.proto.MSOrder.MCoupon;
import com.zy.order.proto.MSOrder.MCouponList;
import com.zy.sys.proto.MOCommon.MRet;


public interface UserCouponService {
	
	void save(UserCoupon coupon);
	
	MRet.Builder adaptCoupon(String id,String userId) throws Exception;
	
	MCoupon.Builder getBestCoupont(String userId,String storeId,BigDecimal total,String couponId);
	
	UserCoupon findById(String id);

	void update(UserCoupon coupon);

	MCouponList.Builder getMyCoupons(String userId);

	MCouponList.Builder getUsableCouponList(String userId, String storeId, BigDecimal total);

	MCouponList.Builder adaptCoupon(String userId);
	
	void delByCouponId(String couponId);

	String getMyCouponList(String userId);

	Ret getCoupon(String id, String userId);
	
}
